CC=g++
CFLAGS=-c -Wall -O2
LDFLAGS=-pg
SOURCES=main.cpp xssbuster.cpp cmdline.cpp tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=xssbuster

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -rf *.o xssbuster
